package com.gloaba.resource.api.factory;

import com.gloaba.resource.api.service.FileRemoteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class FileRemoteFallbackFactory implements FallbackFactory<FileRemoteService> {

    @Override
    public FileRemoteService create(Throwable throwable)
    {
        log.error("resource服务调用失败:{}", throwable.getMessage());
        return null;
    }
}
